#!/usr/bin/perl
#
print "\\begin{table}[h]\n";
print "\\centering\n";
print "\\begin{tabular}{|c|c|c|}\n";
print "\\hline\n";
print "Frequency&Source Treelet&Target Treelet\\\\\\hline\n";
while($line=<STDIN>) {
	$line=~s/^\s*//g;
	$line=~s/\s*$//g;
	$line=~s/\s+/&/g;
	$line=~s/\~/_/g;
	$line=~s/_/\\_/g;
	$line=~s/$/\\\\\\hline/g;
	print $line."\n";
}
print "\\end{tabular}\n";
print "\\caption{}\n";
print "\\label{}\n";
print "\\end{table}\n";

